package com.wxd.bean;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;

import com.sun.java_cup.internal.runtime.Scanner;

public class CarBaseInfo {
	private String uid;
	private String carUnit;
	private String fileNum;
	private String artificialNum;
	private String licensePlate;
	private String prepareDate;
	private String vehicleModel;
	private String vehicleType;
	private String roadTransportNum;
	private String drivingLicenseNum;
	private String vehicleTechnologyLevel;
	private String fuelType;
	private String carLevelType;
	private String useProperty;
	private String acquisitionDate;
	private String commissioningDate;
	private String engineNum;
	private String turfNum;
	private String carCompany;
	private String legalPerson;
	private String legalPersonPhone;
	private String carOwner;
	private String carOwnerPhone;
	private String address;

	public CarBaseInfo() {
		super();
	}

	public CarBaseInfo(String uid, String carUnit, String fileNum,
			String artificialNum, String licensePlate, String prepareDate,
			String vehicleModel, String vehicleType, String roadTransportNum,
			String drivingLicenseNum, String vehicleTechnologyLevel,
			String fuelType, String carLevelType, String useProperty,
			String acquisitionDate, String commissioningDate, String engineNum,
			String turfNum, String carCompany, String legalPerson,
			String legalPersonPhone, String carOwner, String carOwnerPhone,
			String address) {
		super();
		this.uid = uid;
		this.carUnit = carUnit;
		this.fileNum = fileNum;
		this.artificialNum = artificialNum;
		this.licensePlate = licensePlate;
		this.prepareDate = prepareDate;
		this.vehicleModel = vehicleModel;
		this.vehicleType = vehicleType;
		this.roadTransportNum = roadTransportNum;
		this.drivingLicenseNum = drivingLicenseNum;
		this.vehicleTechnologyLevel = vehicleTechnologyLevel;
		this.fuelType = fuelType;
		this.carLevelType = carLevelType;
		this.useProperty = useProperty;
		this.acquisitionDate = acquisitionDate;
		this.commissioningDate = commissioningDate;
		this.engineNum = engineNum;
		this.turfNum = turfNum;
		this.carCompany = carCompany;
		this.legalPerson = legalPerson;
		this.legalPersonPhone = legalPersonPhone;
		this.carOwner = carOwner;
		this.carOwnerPhone = carOwnerPhone;
		this.address = address;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getCarUnit() {
		return carUnit;
	}

	public void setCarUnit(String carUnit) {
		this.carUnit = carUnit;
	}

	public String getFileNum() {
		return fileNum;
	}

	public void setFileNum(String fileNum) {
		this.fileNum = fileNum;
	}

	public String getArtificialNum() {
		return artificialNum;
	}

	public void setArtificialNum(String artificialNum) {
		this.artificialNum = artificialNum;
	}

	public String getLicensePlate() {
		return licensePlate;
	}

	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}

	public String getPrepareDate() {
		return prepareDate;
	}

	public void setPrepareDate(String prepareDate) {
		this.prepareDate = prepareDate;
	}

	public String getVehicleModel() {
		return vehicleModel;
	}

	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public String getRoadTransportNum() {
		return roadTransportNum;
	}

	public void setRoadTransportNum(String roadTransportNum) {
		this.roadTransportNum = roadTransportNum;
	}

	public String getDrivingLicenseNum() {
		return drivingLicenseNum;
	}

	public void setDrivingLicenseNum(String drivingLicenseNum) {
		this.drivingLicenseNum = drivingLicenseNum;
	}

	public String getVehicleTechnologyLevel() {
		return vehicleTechnologyLevel;
	}

	public void setVehicleTechnologyLevel(String vehicleTechnologyLevel) {
		this.vehicleTechnologyLevel = vehicleTechnologyLevel;
	}

	public String getFuelType() {
		return fuelType;
	}

	public void setFuelType(String fuelType) {
		this.fuelType = fuelType;
	}

	public String getCarLevelType() {
		return carLevelType;
	}

	public void setCarLevelType(String carLevelType) {
		this.carLevelType = carLevelType;
	}

	public String getUseProperty() {
		return useProperty;
	}

	public void setUseProperty(String useProperty) {
		this.useProperty = useProperty;
	}

	public String getAcquisitionDate() {
		return acquisitionDate;
	}

	public void setAcquisitionDate(String acquisitionDate) {
		this.acquisitionDate = acquisitionDate;
	}

	public String getCommissioningDate() {
		return commissioningDate;
	}

	public void setCommissioningDate(String commissioningDate) {
		this.commissioningDate = commissioningDate;
	}

	public String getEngineNum() {
		return engineNum;
	}

	public void setEngineNum(String engineNum) {
		this.engineNum = engineNum;
	}

	public String getTurfNum() {
		return turfNum;
	}

	public void setTurfNum(String turfNum) {
		this.turfNum = turfNum;
	}

	public String getCarCompany() {
		return carCompany;
	}

	public void setCarCompany(String carCompany) {
		this.carCompany = carCompany;
	}

	public String getLegalPerson() {
		return legalPerson;
	}

	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}

	public String getLegalPersonPhone() {
		return legalPersonPhone;
	}

	public void setLegalPersonPhone(String legalPersonPhone) {
		this.legalPersonPhone = legalPersonPhone;
	}

	public String getCarOwner() {
		return carOwner;
	}

	public void setCarOwner(String carOwner) {
		this.carOwner = carOwner;
	}

	public String getCarOwnerPhone() {
		return carOwnerPhone;
	}

	public void setCarOwnerPhone(String carOwnerPhone) {
		this.carOwnerPhone = carOwnerPhone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public static void main(String[] args) throws IOException {
		
		
		BufferedReader reader = new BufferedReader(new FileReader(
				"C:/Users/wxd/Desktop/abc.txt"));

		String str = null;
		int i=1;
		while ((str = reader.readLine()) != null) {
			String x = str.split(" ")[2];
			x = x.substring(0,x.length()-1);
//			System.out.println("private String "+ str.trim()+";");
			System.out.println("carDriver.set"+ bb(x.trim())+"(map.get("+(i++)+").toString());");
//			System.out.println("String "+ str.trim()+" = request.getParameter(\""+str.trim()+"\");");
			
//			String abc= "'\"+carChassis.get"+bb(str.trim())+"()+\"',";
//			System.out.print(abc);
		}
		reader.close();
	}
	
	public static  String bb(String str){
		return str.substring(0, 1).toUpperCase()+str.substring(1, str.length());
		
	}
}
